
/****************************************************************************************
*                                                                                      *
*                          Projeto BioInfo - Lincs and CIn / UFPE                      *
*                                    07/10/2014                                        *
*																					   *
****************************************************************************************
* Descricao: Arquivo que contem o construtor da classe Threads.                        *
****************************************************************************************
* Responsaveis: Jefferson Ramos(jrla)													   *
*                                                                                      */
/*                                                                                     *
****************************************************************************************/
#include <Threads.hpp>

Threads::~Threads() {

	printf("destroyer finished (Threads)... ");

	try{

		_aligned_free(query);
		_aligned_free(individuals);

		_aligned_free(mat_direction);
		_aligned_free(store_individuals);

		fclose(Results);
	}
	catch ( std::exception e ) {
		printf("ERRO: Fail to Free Vectors.");
		printf("\n\nPress ENTER to exit...");
		fflush(stdin);
		getchar();
		exit(-1);

	}
	catch ( ... ) {
		printf("ERRO: Fail to Free Vectors.");
		printf("\n\nPress ENTER to exit...");
		fflush(stdin);
		getchar();
		exit(-1);
	}

	printf("OK.\n\n");

	return;
}


